home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
demos
/
lmitool
/
ric_dscr.sci
< prev
next >
Wrap
Text File
|
1999-09-16
|
695b
|
30 lines
function [P]=ric_dscr(E,A,C,Q,R)
// Generated by lmitool on Thu Feb 09 15:59:05 MET 1995
Mbound = 1e3;
abstol = 1e-10;
nu = 10;
maxiters = 100;
reltol = 1e-10;
options=[Mbound,abstol,nu,maxiters,reltol];
///////////DEFINE INITIAL GUESS AND PRELIMINARY CALCULATIONS BELOW
P_init=zeros(A'*A)
///////////
XLIST0=list(P_init)
XLIST=lmisolver(XLIST0,ric_dscr_eval,options)
[P]=XLIST(:)
/////////////////EVALUATION FUNCTION////////////////////////////
function [LME,LMI,OBJ]=ric_dscr_eval(XLIST)
[P]=XLIST(:)
/////////////////DEFINE LME, LMI and OBJ BELOW
LME=P-P'
LMI=[A*P*A'+Q,zeros(A*C'),E*P;zeros(C*A'),R,C*P;P*E',P*C',P]
OBJ=-trace(P)